<template>
  <div id="app">
    <ul>
      <li>
        <router-link to="/">Home</router-link>
      </li>
      <li>
        <router-link to="/about">About</router-link>
      </li>
      <li>
        <router-link to="/posts">Posts</router-link>
      </li>
    </ul>

    <!-- 路由出口 -->
    <router-view/>
    <div>{{ msg }}</div>
    <input v-model="msg">
    <button @click="handleClick">点击</button>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      msg: '前端你好111',
    }
  },
  methods: {
    handleClick () {
      console.log('Hello Front')
    },
  },
}
</script>

<style>

</style>